home *** CD-ROM | disk | FTP | other *** search
/ Aminet 37 / Aminet 37 (2000)(Schatztruhe)[!][Jun 2000].iso / Aminet / dev / cross / Avr.lha / Atmel / Asm / atmel.txt < prev    next >
Text File  |  1999-05-08  |  6KB  |  139 lines

  1. *DONT CHANGE THIS FILE!*
  2. *Rd/Rr register*
  3. *K Constant literal or byte data*
  4. *k Constant address data*
  5. *b Bit number (3 bit)*
  6. *s Bit in status register (3 bit)*
  7. *P I/O port address*
  8. *q Displacement for direct addressing (6 bit)*
  9. *! indicates the following bit will be inverted*
  10. **
  11. *N is normal*
  12. *U is upper registers*
  13. *R is relative addressing*
  14. *L is longer relative addressing*
  15. *S is registers >15*
  16. *Axxxx Replace opcode with xxxx and operand is Rn,Rn*
  17. **
  18. ADD Rd,Rr  000011rdddddrrrr                    N
  19. ADC Rd,Rr  000111rdddddrrrr                    N
  20. ADIW Rdl,K 10010110KKddKKKK                    U
  21. SUB Rd,Rr  000110rdddddrrrr                    N
  22. SUBI Rd,K  0101KKKKddddKKKK                    S
  23. SBIW Rdl,K 10010111KKddKKKK                    U
  24. SBC Rd,Rr  000010rdddddrrrr                    N 
  25. SBCI Rd,K  0100KKKKddddKKKK                    S
  26. AND Rd,Rr  001000rdddddrrrr                    N
  27. ANDI Rd,K  0111KKKKddddKKKK                    S
  28. OR Rd,Rr   001010rdddddrrrr                    N                      
  29. ORI Rd,K   0110KKKKddddKKKK                    S
  30. EOR Rd,Rr  001001rdddddrrrr                    N
  31. COM Rd     1001010ddddd0000                    N
  32. NEG Rd     1001010ddddd0001                    N
  33. SBR Rd,K   0110KKKKddddKKKK                    S
  34. CBR Rd,K   0111!K!K!K!Kdddd!K!K!K!K            S
  35. INC Rd     1001010ddddd0011                    N
  36. DEC Rd     1001010ddddd1010                    N
  37. TST Rd     0000000000000000                    AAND
  38. CLR Rd     0000000000000000                    AEOR
  39. SER Rd     11101111dddd1111                    S
  40. RJMP k     1100kkkkkkkkkkkk                    L
  41. IJMP -     10010100XXXX1001                    N
  42. RCALL k    1101kkkkkkkkkkkk                    L
  43. ICALL -    10010101XXXX1001                    N
  44. RET -      100101010XX01000                    N
  45. RETI -     100101010XX11000                    N
  46. CPSE Rd,Rr 000100rdddddrrrr                    N
  47. CP Rd,Rr   000101rdddddrrrr                    N
  48. CPC Rd,Rr  000001rdddddrrrr                    N
  49. CPI Rd,K   0011KKKKddddKKKK                    S
  50. SBRC Rr,b  1111110rrrrrXbbb                    N
  51. SBRS Rr,b  1111111rrrrrXbbb                    N
  52. SBIC P,b   10011001PPPPPbbb                    N 
  53. SBIS P,b   10011011PPPPPbbb                    N
  54. BRBS s,k   111100kkkkkkksss                    R
  55. BRBC s,k   111101kkkkkkksss                    R 
  56. BREQ k     111100kkkkkkk001                    R
  57. BRNE k     111101kkkkkkk001                    R
  58. BRCS k     111100kkkkkkk000                    R
  59. BRCC k     111101kkkkkkk000                    R
  60. BRSH k     111101kkkkkkk000                    R
  61. BRLO k     111100kkkkkkk000                    R
  62. BRMI k     111100kkkkkkk010                    R
  63. BRPL k     111101kkkkkkk010                    R
  64. BRGE k     111101kkkkkkk100                    R
  65. BRLT k     111100kkkkkkk100                    R
  66. BRHS k     111100kkkkkkk101                    R
  67. BRHC k     111101kkkkkkk101                    R
  68. BRTS k     111100kkkkkkk110                    R
  69. BRTC k     111101kkkkkkk110                    R
  70. BRVS k     111100kkkkkkk011                    R
  71. BRVC k     111101kkkkkkk011                    R
  72. BRIE k     111100kkkkkkk111                    R
  73. BRID k     111101kkkkkkk111                    R
  74. MOV Rd,Rr  001011rdddddrrrr                    N
  75. LDI Rd,K   1110KKKKddddKKKK                    S
  76. LD Rd,X    1001000ddddd1100                    N
  77. LD Rd,X+   1001000ddddd1101                    N
  78. LD Rd,-X   1001000ddddd1110                    N
  79. LD Rd,Y    1000000ddddd1000                    N
  80. LD Rd,Y+   1001000ddddd1001                    N
  81. LD Rd,-Y   1001000ddddd1010                    N
  82. LDD Rd,Y+q 10q0qq0ddddd1qqq                    N
  83. LD Rd,Z    1000000ddddd0000                    N
  84. LD Rd,Z+   1001000ddddd0001                    N
  85. LD Rd,-Z   1001000ddddd0010                    N
  86. LDD Rd,Z+q 10q0qq0ddddd0qqq                    N
  87. LDS Rd,k   1001000ddddd0000kkkkkkkkkkkkkkkk    N
  88. ST X,Rr    1001001rrrrr1100                    N
  89. ST X+,Rr   1001001rrrrr1101                    N
  90. ST -X,Rr   1001001rrrrr1110                    N
  91. ST Y,Rr    1000001rrrrr1000                    N
  92. ST Y+,Rr   1001001rrrrr1001                    N
  93. ST -Y,Rr   1001001rrrrr1010                    N
  94. STD Y+q,Rr 10q0qq1rrrrr1qqq                    N
  95. ST Z,Rr    1000001rrrrr0000                    N
  96. ST Z+,Rr   1001001rrrrr0001                    N
  97. ST -Z,Rr   1001001rrrrr0010                    N
  98. STD Z+q,Rr 10q0qq1rrrrr0qqq                    N
  99. STS k,Rr   1001001rrrrr0000kkkkkkkkkkkkkkkk    N
  100. LPM -      10010101110X1000                    N 
  101. IN Rd,P    10110PPdddddPPPP                    N
  102. OUT P,Rr   10111PPrrrrrPPPP                    N
  103. PUSH Rr    1001001rrrrr1111                    N
  104. POP Rd     1001000ddddd1111                    N
  105. SBI P,b    10011010PPPPPbbb                    N
  106. CBI P,b    10011000PPPPPbbb                    N
  107. LSL Rd     0000000000000000                    AADD
  108. LSR Rd     1001010ddddd0110                    N
  109. ROL Rd     0000000000000000                    AADC
  110. ROR Rd     1001010ddddd0111                    N
  111. ASR Rd     1001010ddddd0101                    N 
  112. SWAP Rd    1001010ddddd0010                    N
  113. BSET s     100101000sss1000                    N
  114. BCLR s     100101001sss1000                    N
  115. BST Rr,b   1111101rrrrrXbbb                    N
  116. BLD Rd,b   1111100ddddd0bbb                    N
  117. SEC -      1001010000001000                    N
  118. CLC -      1001010010001000                    N
  119. SEN -      1001010000101000                    N
  120. CLN -      1001010010101000                    N
  121. SEZ -      1001010000011000                    N
  122. CLZ -      1001010010011000                    N
  123. SEI -      1001010001111000                    N
  124. CLI -      1001010011111000                    N
  125. SES -      1001010001001000                    N
  126. CLS -      1001010011001000                    N
  127. SEV -      1001010000111000                    N
  128. CLV -      1001010010111000                    N
  129. SET -      1001010001101000                    N
  130. CLT -      1001010011101000                    N
  131. SEH -      1001010001011000                    N
  132. CLH -      1001010011011000                    N
  133. NOP -      0000000000000000                    N
  134. SLEEP -    10010101100X1000                    N
  135. WDR -      10010101101X1000                    N
  136. *CALL K    1001010KKKKK111KKKKKKKKKKKKKKKKK    N*
  137. *JMP K     1001010KKKKK110KKKKKKKKKKKKKKKKK    N*
  138. *MUL Rd,Rr 100111rdddddrrrr                    N*
  139.